﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI;

[assembly: WebResource("CodeMatrix.Data.ClientScript.js", "text/javascript")]
[assembly: WebResource("CodeMatrix.Data.Surface.jpg", "image/jpeg")]
[assembly: WebResource("CodeMatrix.Data.Wood.jpg", "image/jpeg")]
[assembly: WebResource("CodeMatrix.Data.Animal.jpg", "image/jpeg")]
namespace CodeMatrix.Data
{
    public static class ResourceManager
    {

        private static ClientScriptManager _script;
        private static Type _type = typeof(ResourceManager);
        private const string _prefix = @"CodeMatrix.Data.";

        static ResourceManager()
        {
            _script = new Page().ClientScript;
        }

        public static string Wood
        {
            get
            {
                return _script.GetWebResourceUrl(_type, _prefix + "Wood.jpg");
            }
        }

        public static string Surface
        {
            get
            {
                return _script.GetWebResourceUrl(_type, _prefix + "Surface.jpg");
            }
        }

        public static string Animal
        {
            get
            {
                return _script.GetWebResourceUrl(_type, _prefix + "Animal.jpg");
            }
        }

        public static string ClientScript
        {
            get
            {
                return _script.GetWebResourceUrl(_type, _prefix + "ClientScript.js");
            }
        }

    }
}
